package com.xbongbong.paas.model.impl;

import com.xbongbong.paas.domain.dao.StageTimeoutRemindDao;
import com.xbongbong.paas.domain.entity.StageTimeoutRemindEntity;
import com.xbongbong.paas.model.StageTimeoutRemindModel;
import com.xbongbong.paas.toolbox.exception.XbbException;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Auther: yingjianfeng
 * @Date: 2021/11/16 16:04
 * @Description:
 */
@Service("stageTimeoutRemindModel")
public class StageTimeoutRemindModelImpl implements StageTimeoutRemindModel {

    @Resource
    private StageTimeoutRemindDao stageTimeoutRemindDao;

    @Override
    public Integer insert(StageTimeoutRemindEntity entity) throws XbbException {
        return stageTimeoutRemindDao.insert(entity);
    }

    @Override
    public Integer update(StageTimeoutRemindEntity entity) throws XbbException {
        return stageTimeoutRemindDao.update(entity);
    }

    @Override
    public List<StageTimeoutRemindEntity> findEntitys(Map<String, Object> param) {
        return stageTimeoutRemindDao.findEntitys(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return stageTimeoutRemindDao.getEntitysCount(param);
    }

    @Override
    public List<StageTimeoutRemindEntity> findEntitysWithoutSub(Map<String, Object> param) {
        return stageTimeoutRemindDao.findEntitys(param);
    }

    @Override
    public void insertBatch(List<StageTimeoutRemindEntity> list) {
        stageTimeoutRemindDao.insertBatch(list);
    }

    @Override
    public void updateBatch(List<StageTimeoutRemindEntity> stageTimeoutRemindEntityList, String corpid) {
        stageTimeoutRemindDao.updateBatch(stageTimeoutRemindEntityList, corpid);
    }

    @Override
    public StageTimeoutRemindEntity getByKey(Long id, String corpid) {
        return stageTimeoutRemindDao.getByKey(id, corpid);
    }

    @Override
    public void deleteByIdIn(String corpid, List<Long> idIn) {
        stageTimeoutRemindDao.deleteByIdIn(corpid, idIn);
    }
}
